/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rultax.blackice;

import processing.core.PApplet;

/**
 * Object in the physical world. Dimensions for this object should be in meters
 * NOT pixels.
 * 
 * @author rultax
 */
public abstract class PhysicsObject {
    private PApplet screen;
    private Physics physics;
    
    /**
     * Creates a new instance of PhysicsObject
     * 
     * @param screen
     * @param physics 
     */
    public PhysicsObject(PApplet screen, Physics physics){
	this.screen = screen;
	this.physics = physics;
    }

    /**
     * Gets controlling Physics
     * 
     * @return 
     */
    public Physics getPhysics() {
	return physics;
    }

    /**
     * Gets PApplet used to display this
     * 
     * @return 
     */
    public PApplet getScreen() {
	return screen;
    }
    
    /**
     * Draws the object onto the screen
     */
    public abstract void display();
}
